//强制登录逻辑
function checkLogin() {
    $.ajax({
        type: 'get',
        url: 'login',
        success: function() {
            console.log('已登陆~');
        },
        error: function() {
            console.log('尚未登录');
            location.assign('login.html');
        }
    });
}
